#include<iostream>
#include<list>
#include<vector>
#include<deque>
using namespace std;

////class A
////{
////public:
////	string _name;
////	int _a;
////};
////class B : public A
////{
////public:
////	int _num;
////};
////class C : public A
////{
////public:
////	int _id;
////};
////class D:public B,public C
////{
////public:
////	int _major;
////};
////
////int main()
////{
////	D d1;
////	d1.A::_a = 1;
////	d1.B::_num = 2;
////	d1.B::_a = 4;
////	d1.C::_id = 3;
////	d1.C::_a  = 5;
////	d1._major = 4;
////
////	return 0;
////}
//
//
//class A
//{
//public:
//	int _a;
//};
//// class B : public A
//class B : 
//{
//public:
//	A a();
//	int _b;
//};
//// class C : public A
//class C : virtual public A
//{
//public:
//	int _c;
//};
//class D : public B, public C
//{
//public:
//	int _d;
//};
//int main()
//{
//	D d;
//	d.B::_a = 1;
//	d.C::_a = 2;
//	d._b = 3;
//	d._c = 4;
//	d._d = 5;
//	return 0;
//}
//

int main()

{

	vector<int> cont = { 1, 2, 3, 4, 5 };

	vector<int>::iterator iter, tempIt;
	for (iter = cont.begin(); iter != cont.end();)

	{
		tempIt = iter;
		++iter;
		cont.erase(tempIt);
	}
	return 0;
}
